package com.moneywelcome.userserviceassembly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moneywelcome.results.Result;
import com.moneywelcome.userserviceassembly.entity.UserLogin;
import com.woniu.demo.Dto.PageDto;
import com.woniu.demo.Dto.UpdatePasswordDto;
import com.woniu.demo.Dto.UserLoginDto;
import com.woniu.demo.param.*;

import java.util.List;

public interface UserService extends IService<UserLogin> {
    //账号，密码登录
    UserLoginDto userLogin(UserAccountLoginParam userAccountLoginParam);

    //手机号发送验证码
    Result  phonesetcode(String phone);

    //校验验证码
    Result  checkcode(PhoneRegisterParam phoneRegisterParam);

    //查找该账号的昵称
    Result  loadUserRoleNickname(String phone);

    //分页查询账号结果
    PageDto findUser(PageFindUserParam pageFindUserParam);

    //修改登录账号密码，电话
    UpdatePasswordDto updateUserInfo(UpdatePasswordParam updatePasswordParam);

    //删除账号
    Boolean remUser(List<Integer> ids);



}
